package com.diors.game.engine.arpg.scene;

import java.util.concurrent.ConcurrentHashMap;

import org.apache.log4j.Logger;

import com.diors.game.engine.arpg.scene.entity.SceneEntity;

/**
 * 场景管理类
 * @author	darren.ouyang <ouyang.darren@gmail.com>
 * @date	2013-10-28
 * @version 1.0
 * @copyright Copyright (c) 2013, darren.ouyang
 */
public final class SceneManager 
{
	
	static Logger log = Logger.getLogger(SceneManager.class);

	private final ConcurrentHashMap<Long, SceneEntity> map = new ConcurrentHashMap<Long, SceneEntity>();
	
	public void register (SceneEntity scene)
	{
		//map.put(scene.getID(), scene);
	}
	
	public void unregister (long sceneID)
	{
		map.remove(sceneID);
	}
	
	public SceneEntity get (long sceneID)
	{
		return map.get(sceneID);
	}

	public boolean contains(long sceneID)
	{
		return map.containsKey(sceneID);
	}
}
